import { UtilsService } from '@app/utils';
import { Controller, Inject } from '@nestjs/common';

@Controller()
export class BaseController {
    @Inject()
    protected readonly utils:UtilsService
    
    successRes(data:any = null, params?:{[key : string] : any}) {
        return this.utils.successRes(data, params)
    }

    failRes(msg?:string, params?:{[key : string] : any}) {
        return this.utils.failRes(msg, params)
    }
}
